<?php session_start();
	if(isset($_SESSION['user']))
	{
		session_destroy();
		if(isset($_COOKIE['eam_eclass_login']))
		{
			setcookie('eam_eclass_login[user]', '', time() - 3600);
			setcookie('eam_eclass_login[position]', '', time() - 3600);
			setcookie('eam_eclass_login[username]', '', time() - 3600);
		}
	}
	header('Location: index.php');
?>